A Coalgebraic View of Bar Recursion and Bar Induction
نویسندگان
چکیده
We reformulate the bar recursion and induction principles in terms of recursive and wellfounded coalgebras. Bar induction was originally proposed by Brouwer as an axiom to recover certain classically valid theorems in a constructive setting. It is a form of induction on nonwellfounded trees satisfying certain properties. Bar recursion, introduced later by Spector, is the corresponding function definition principle. We give a generalization of these principles, by introducing the notion of barred coalgebra: a process with a branching behaviour given by a functor, such that all possible computations terminate. Coalgebraic bar recursion is the statement that every barred coalgebra is recursive; a recursive coalgebra is one that allows definition of functions by a coalgebra-to-algebra morphism. It is a framework to characterize valid forms of recursion for terminating functional programs. One application of the principle is the tabulation of continuous functions: Ghani, Hancock and Pattinson defined a type of wellfounded trees that represent continuous functions on streams. Bar recursion allows us to prove that every stably continuous function can be tabulated to such a tree where by stability we mean that the modulus of continuity is also continuous. Coalgebraic bar induction states that every barred coalgebra is wellfounded; a wellfounded coalgebra is one that admits proof by induction.
منابع مشابه
Coq as a Metatheory for Nuprl with Bar Induction
These past few years, we have been experimenting in Nuprl with versions of Brouwer’s Bar Induction principle. Until recently we had no formal proof that these rules are valid Nuprl reasoning principles. Thanks to our formalization of Nuprl’s metatheory in Coq, we can now rigorously check whether these principles are consistent with Nuprl. In this paper we present a proof, using our Coq framewor...
متن کاملAbstracts of the invited speakers
s of the invited speakers Dag Normann, University of Oslo, Norway Revisiting Transfinite Types In this talk I will reconstruct spaces of countable and uncountable transfinite types, this time using limit spaces. This approach turns out to give a better access to internal concepts of computability for such spaces. The talk will be a report on ongoing research. This research is rooted in earlier ...
متن کاملOlver Notes for Recitation 3 1 Problem : Breaking a chocolate bar
Intuitively, to break up a big chocolate bar, we need one split to make two pieces, and then we can break up the two pieces recursively. This suggests a proof using strong induction on the size of the chocolate bar, where size is measured in chocolate squares. Now instead of a problem involving two variables (the two dimensions), we have a problem in one variable (the size). With this simplific...
متن کاملModified bar recursion
We introduce a variant of Spector’s bar recursion (called “modified bar recursion”) in finite types to give a realizability interpretation of the classical axiom of countable choice allowing for the extraction of witnesses from proofs of Σ1 formulas in classical analysis. As a second application of modified bar recursion we present a bar recursive definition of the fan functional. Moreover, we ...
متن کاملBar recursion over finite partial functions
We introduce a new, demand-driven variant of Spector’s bar recursion in the spirit of the BerardiBezem-Coquand functional of [4]. The recursion takes place over finite partial functions u, where the control parameter φ, used in Spector’s bar recursion to terminate the computation at sequences s satisfying φ(ŝ) < |s|, now acts as a guide for deciding exactly where to make bar recursive updates, ...
متن کامل